package com.platform.modules.prj.service;

import java.util.Map;

import org.activiti.engine.delegate.DelegateExecution;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.platform.modules.cpt.entity.CptAcceptanceConditionEntity;
import com.platform.modules.prj.entity.PrjPauseEntity;
import com.platform.modules.sys.entity.SysOrgEntity;
import com.platform.modules.sys.entity.SysUserEntity;

/**
 * Service接口
 *
 * @author biaohuaming
 * @date 2020-03-11
 */
public interface PrjPauseService extends IService<PrjPauseEntity> {


	/**
	 * @descr 分页查询，params 含分页参数
	 * @param params
	 * @return
	 */
	Page<PrjPauseEntity> queryPage(Map<String, Object> params);
		
	/**
	 * @descr 保存中止施工审批内容
	 * @param params
	 * @return
	 */
	PrjPauseEntity sp(PrjPauseEntity prjPauseEntity, SysOrgEntity sysOrgEntity, SysUserEntity sysUserEntity);
	
	/**
	 * 更新中止施工记录状态
	 * @param execution
	 */
	void updateStatus(DelegateExecution execution);
	
	/**
	 * 中止施工流程开始(更新状态)
	 * @param execution
	 */
	void start(DelegateExecution execution);
}
